package com.jinrong.common;/*

 */

import lombok.Data;

/**
 * @projectName: ShowYourLove
 * @package: com.jinrong.common
 * @className: Result
 * @author: JackVictor
 * @description: TODO
 * @date: 2024/3/23 13:20
 * @version: 1.0
 */
@Data
public class Result {
    private int code;
    private String msg;;
    private Object data;
    public Result(){

    }

    public Result(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
    public Result success(Object data){
        this.code=1;
        this.msg="success";
        this.data=data;
        return this;
    }
}
